package com.lighting.common.feign.search.dto.inside;

import com.lighting.common.feign.search.dto.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * @author zhanghanjun
 * @date 2022-06-11 10:51
 */

@Getter
@Setter
public class UpdateDto extends Query {

    @ApiModelProperty("部分更新的列(为null则不更新)")
    private Map<String, Object> data;

    @ApiModelProperty("强制更新的列(无值则更新为null)")
    private String[] forcedField;

    public UpdateDto() {
    }

    public UpdateDto(String indexName, Map<String, Object> data) {
        super(indexName);
        this.data = data;
    }

}
